import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    host: "192.168.16.106",
    proxy: {
      '/api': {
        target: "http://192.168.16.106:7001",
        rewrite: (path) => path.replace(/^\/api/, '')
      }
    }
  }
})
